package com.example.common.to.es;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class SkuEsModel { //common中
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    private boolean hasStock;
    private Long hotScore;
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attr> attrs;

    @Data
    public static class Attr{
        private Long attrId;
        private String attrName;
        private String attrValue;
    }

    @Override
    public String toString() {
        return "SkuEsModel{" +
                "skuId=" + skuId +
                ", spuId=" + spuId +
                ", skuTitle='" + skuTitle + '\'' +
                ", skuPrice=" + skuPrice +
                ", skuImg='" + skuImg + '\'' +
                ", saleCount=" + saleCount +
                ", hasStock=" + hasStock +
                ", hotScore=" + hotScore +
                ", brandId=" + brandId +
                ", catalogId=" + catalogId +
                ", brandName='" + brandName + '\'' +
                ", brandImg='" + brandImg + '\'' +
                ", catalogName='" + catalogName + '\'' +
                ", attrs=" + attrs +
                '}';
    }
}

